/**
 * Created by cleverdou on 2018/7/24.
 */
'use strict';



function parseJSON(data) {
    try {
        return JSON.parse(data);
    } catch (e) {
        return data
    }
}

function checkNullObj(obj) {
    return Object.keys(obj).length === 0
}

module.exports.parseJSON = parseJSON;
module.exports.checkNullObj = checkNullObj;